<?php


namespace App\Http\Controllers\Index;


use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;

class IndexController extends Controller
{
    public function index()
    {
        session(['nowAddress' => '']);
        session(['lastAddress' => '']);
        $data['book'] = DB::table('book')->get();
        return view('/index.index',$data);
    }

    public function class()
    {
        session(['nowAddress' => 'class']);
        session(['lastAddress' => 'class']);
        return view('/index.class');
    }
}